package com.lijie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 登录日志表(TbLoginLog)实体类
 *
 * @author lijie
 * @since 2020-07-31 09:34:20
 */
@Data
@ApiModel(value="TbLoginLog对象", description="登录日志表")
public class TbLoginLog implements Serializable {
    private static final long serialVersionUID = -83981107845411057L;
    /**
    * id
    */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
    * 用户名
    */
    @ApiModelProperty(value = "用户名")
    private String username;
    /**
    * 登录时间
    */
    @ApiModelProperty(value = "登录时间")
    private Date loginTime;
    /**
    * 登录地点
    */
    @ApiModelProperty(value = "登录地点")
    private String location;
    /**
    * IP地址
    */
    @ApiModelProperty(value = "IP地址")
    private String ip;
    /**
    * 操作系统
    */
    @ApiModelProperty(value = "操作系统")
    private String userSystem;
    /**
    * 浏览器
    */
    @ApiModelProperty(value = "浏览器")
    private String userBrowser;

    /**
     * 逻辑删除
     */
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUserSystem() {
        return userSystem;
    }

    public void setUserSystem(String userSystem) {
        this.userSystem = userSystem;
    }

    public String getUserBrowser() {
        return userBrowser;
    }

    public void setUserBrowser(String userBrowser) {
        this.userBrowser = userBrowser;
    }

}